package com.woniu.smallmedical.server;

import com.woniu.smallmedical.entity.Department;
import com.woniu.smallmedical.entity.PageBean;

import java.util.List;

public interface DepartmentServer {

    List<Department> getAllDepartment();

//    查询所有科室分页，无条件
    List<Department> departmentList(PageBean pageBean);
//   查询科室数量
    int getCount();
//    更改科室状态
    int changeswitch(Department department);
//    查询科室，带条件
    List<Department> departmentListByUrl(PageBean pageBean);
//    新增科室
int addDepartment(Department department);
    //    修改科室信息
    int changedepartmentListInfo(Department department);
//    删除科室（状态值改为3）
    int deleteDepartment(Department department);
}
